Skip to content

Reboot Pending Prompt#723

Merged
Rj98-sh merged 1 commit into
mainfrom
origin-modify-ninja-one-solution-reboot-pending-prompt
Jun 11, 2026
Merged

Reboot Pending Prompt#723
Rj98-sh merged 1 commit into
mainfrom
origin-modify-ninja-one-solution-reboot-pending-prompt

Conversation

@Starepinjore

Copy link
Copy Markdown
Contributor
  • Missed prompt counter now uses real elapsed time instead of counting each script run. This makes the forced reboot timeline predictable no matter how often the detection script checks in.
  • Added safety checks for active installations before rebooting unattended machines. The script now looks for Windows Updates, feature upgrades, MSI installers, BITS downloads, and winget activity.
  • If a forced reboot is due but an install is still running, the reboot waits until the install finishes. It will trigger automatically on the next check after the install completes.
  • Machines with no user logged in will no longer reboot mid-update. The script exits safely and retries on the next cycle once servicing is done.
  • Winget (Windows Package Manager) is only treated as active when it is actually doing work, preventing false detections from an idle process.
  • Script documentation updated to reflect all of the above changes.

- Missed prompt counter now uses real elapsed time instead of counting each script run. This makes the
  forced reboot timeline predictable no matter how often the detection script checks in.
- Added safety checks for active installations before rebooting unattended machines. The script now looks
  for Windows Updates, feature upgrades, MSI installers, BITS downloads, and winget activity.
- If a forced reboot is due but an install is still running, the reboot waits until the install finishes.
  It will trigger automatically on the next check after the install completes.
- Machines with no user logged in will no longer reboot mid-update. The script exits safely and retries
  on the next cycle once servicing is done.
- Winget (Windows Package Manager) is only treated as active when it is actually doing work, preventing
  false detections from an idle process.
- Script documentation updated to reflect all of the above changes.
@Starepinjore Starepinjore requested a review from Rj98-sh June 10, 2026 12:35
@Starepinjore Starepinjore self-assigned this Jun 10, 2026
@Starepinjore Starepinjore added documentation Improvements or additions to documentation enhancement New feature or request labels Jun 10, 2026

@Rj98-sh Rj98-sh left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully tested the changes except for background installation
Halo Ticket: 0368340

@Rj98-sh Rj98-sh merged commit 07747ba into main Jun 11, 2026
1 check passed
@Rj98-sh Rj98-sh deleted the origin-modify-ninja-one-solution-reboot-pending-prompt branch June 11, 2026 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants